package com.tyk.bookstore.front.member.model.enume;

import com.fasterxml.jackson.annotation.JsonValue;
import com.tyk.bookstore.front.common.core.model.enume.BaseEnum;

/**
 * @author tyk
 * @description CenterUpdateType
 */
public enum CenterUpdateType implements BaseEnum {
    PHONE(0),
    EMAIL(1),
    PASSWORD_LOGIN(2),
    PASSWORD_PAY(3),
    ID_CARD(4);
    @JsonValue
    private final Integer code;

    CenterUpdateType(Integer code) {
        this.code = code;
    }

    @Override
    public Integer value() {
        return code;
    }
}
